package com.xz.knowledgeDuplication.pattern.flyweight;

/**
 * 抽象方块(抽象享元角色)
 *
 * @author 召
 * @date 2022-03-14 21:38:18
 */
public abstract class AbstractBox {

    public abstract String getShape();

    public void display(String color) {
        System.out.println("方块形状: " + this.getShape() + " 颜色: " + color);
    }
}
